package com.taxshare.seller.constant;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;

/**
 * @author YANG
 * @date 2021/3/18
 */
public class CodeConstant {

    private CodeConstant(){}

    //通用code
    public static final String COMM_CODE_0 = "0";
    public static final String COMM_CODE_1 = "1";
    public static final String COMM_CODE_2 = "2";
    public static final String COMM_CODE_3 = "3";
    public static final String COMM_CODE_4 = "4";
    /**
     * 系統内部返回成功标志
     */
    public static final String T0000 = "T0000";
    public static final String THIRD_PARTY_SUCCESS = "00000";
    public static final String T0001 = "T0001";
    public static final String ERROR = "9999";
    public static final String STATUSCODE = "statusCode";
    public static final String RESPONSE = "response";
    public static final String ORDER_NO = "orderNo";
    public static final String COMPANY_NAME = "companyName";
    public static final String TAX_NUMBER = "taxNumber";
    public static final String TOTAL_SUM = "totalSum";
    public static final String TOTAL_TAX = "totalTax";
    public static final String TOTAL_SUM_TAX = "totalSumTax";
    public static final String INVOICE_TYPE = "invoiceType";
    public static final String SELLER_TAX_NO = "sellerTaxNo";
    public static final String PURCHASER_TAX_NO = "purchaserTaxNo";
    public static final String PURCHASER_NAME = "purchaserName";
    public static final String ORDER = "order";
    public static final String DETAIL = "detail";
    public static final String PHONE = "phone";
    public static final String YYYY_MM = "yyyy-MM";
    public static final String YYYY_MM_DD = "yyyy-MM-dd";
    public static final String YYYY_MM_DD_HH_MM_SS = "yyyy-MM-dd HH:mm:ss";
    public static final String YYYYMMDD = "yyyyMMdd";
    public static final String RETURN_MSG = "returnmsg";
    public static final String RETURN_CODE = "returncode";
    public static final String HEAD = "<head>";
    public static final String HEAD_E = "</head>";
    public static final String XML_HEADER = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
    public static final String APPID = "<appid>";
    public static final String APPID_E = "</appid>";
    public static final String SID = "<sid>";
    public static final String SID_E = "</sid>";
    public static final String BUSINESS = "</business>";
    public static final String SERIP = "<svrIp>";
    public static final String SERIP_E = "</svrIp>";
    public static final String SERPORT = "<svrPort>";
    public static final String SERPORT_E = "</svrPort>";
    public static final String FPLXDM_004 = "<fplxdm>004</fplxdm>";
    public static final String XMLHEADER_U = "<?xml version='1.0' encoding='utf-8'?>";
    public static final String HZTZDSC = "<business comment='红字通知单上传' id='HZTZDSC' version='2.0'>";
    public static final String BODY_YYLXDM = "<body yylxdm='1'>";
    public static final String RED_REQ_BILL = "<RedInvReqBill>";
    public static final String REQ_NSRSBH = "<ReqNsrsbh>";
    public static final String REQ_NSRSBH_E = "</ReqNsrsbh>";
    public static final String SBBH = "<Sbbh>";
    public static final String SBBH_E = "</Sbbh>";
    public static final String REQ_BILL_NO = "<ReqBillNo></ReqBillNo>";
    public static final String BILL_TYPE = "<BillType>0</BillType>";
    public static final String TYPE_CODE = "<TypeCode>";
    public static final String TYPE_CODE_E = "</TypeCode>";
    public static final String INV_NO = "<InvNo>";
    public static final String INV_NO_E = "</InvNo>";
    public static final String SZLB = "<Szlb>1</Szlb>";
    public static final String FPLXDM = "<fplxdm>";
    public static final String FPLXDM_E = "</fplxdm>";
    public static final String FPDM = "<fpdm>";
    public static final String FPDM_E = "</fpdm>";
    public static final String FPHM = "<fphm>";
    public static final String FPHM_E = "</fphm>";
    public static final String HJJE = "<hjje>";
    public static final String HJJE_E = "</hjje>";
    public static final String INPUT = "<input>";
    public static final String INPUT_E = "</input>";
    public static final String BODY = "<body>";
    public static final String BODY_E = "</body>";
    public static final String IS_MUTI_RATE = "<IsMutiRate>0</IsMutiRate>";
    public static final String DATE = "<Date>";
    public static final String DATE_E = "</Date>";
    public static final String BUY_NAME = "<BuyerName>";
    public static final String BUY_NAME_E = "</BuyerName>";
    public static final String BUY_TAX_CODE = "<BuyTaxCode>";
    public static final String BUY_TAX_CODE_E = "</BuyTaxCode>";
    public static final String SELLER_NAME = "<SellerName>";
    public static final String SELLER_NAME_E = "</SellerName>";
    public static final String SELLER_TAX_NO_X = "<SellTaxCode>";
    public static final String SELLER_TAX_NO_X_E = "</SellTaxCode>";
    public static final String AMOUNT = "<Amount>";
    public static final String AMOUNT_E = "</Amount>";
    public static final String TAX_RATE = "<TaxRate>";
    public static final String TAX_RATE_E = "</TaxRate>";
    public static final String TAX = "<Tax>";
    public static final String TAX_E = "</Tax>";
    public static final String SPBMBBH = "<SPBMBBH>16.0</SPBMBBH>";
    public static final String SLBZ = "<SLBZ>0</SLBZ>";
    public static final String RED_INV_REQ_BILL_MX = "<RedInvReqBillMx>";
    public static final String RED_INV_REQ_BILL_MX_E = "</RedInvReqBillMx>";
    public static final String RED_INV_REQ_BILL = "</RedInvReqBill>";
    public static final String SPBM = "<spbm>";
    public static final String SPBM_E = "</spbm>";
    public static final String KPLX = "<kplx>";
    public static final String KPLX_E = "</kplx>";
    public static final String XHDWDZDH = "<xhdwdzdh>";
    public static final String XHDWDZDH_E = "</xhdwdzdh>";
    public static final String XHDWYHZH = "<xhdwyhzh>";
    public static final String XHDWYHZH_E = "</xhdwyhzh>";
    public static final String GHDWSBH = "<ghdwsbh>";
    public static final String GHDWSBH_E = "</ghdwsbh>";
    public static final String GHDWMC = "<ghdwmc>";
    public static final String GHDWMC_E = "</ghdwmc>";
    public static final String GHDWDZDH = "<ghdwdzdh>";
    public static final String GHDWDZDH_E = "</ghdwdzdh>";
    public static final String GHDWYHZH = "<ghdwyhzh>";
    public static final String GHDWYHZH_E = "</ghdwyhzh>";
    public static final String FPLXDM_0 = "<fplxdm>0</fplxdm>";
    public static final String SPSM = "<spsm>";
    public static final String SPSM_E = "</spsm>";

    /**
     * 开票设备类型（0-金税盘；1-税控盘；2-盘柜；3-电票平台；4-简易税控盘）
     */
    public static final String EQUIPMENT_JSP = "0";
    public static final String EQUIPMENT_SKP = "1";
    public static final String EQUIPMENT_PG = "2";
    public static final String EQUIPMENT_DPPT = "3";
    public static final String EQUIPMENT_JYSKP = "4";

    /**
     * 发票类型（004-专票；007-普票；026-电子发票 41-卷票 005-机动车发票）
     */
    public static final String INVOICETYPE_ZP = "004";
    public static final String INVOICETYPE_PP = "007";
    public static final String INVOICETYPE_DZFP = "026";
    public static final String INVOICETYPE_JP= "41";
    public static final String INVOICETYPE_JDC= "005";

    /**
     * DocId状态（1已作废 2 已红冲 3 待处理 4 处理失败）
     */
    public static final String YZF = "1";
    public static final String YHC = "2";
    public static final String DCL = "3";
    public static final String CLSB = "4";
    public static final List<String> CANCELLIST = Arrays.asList("3","4");

    /**
     * DocId状态（1 未开具 2 部分开具 3 已开具）
     */
    public static final String WKJ = "0";
    public static final String BFKJ = "2";
    public static final String YKJ = "1";

    /**
     * 明源接口返回code
     */
    public static final String OK = "OK";
    public static final String NO = "NO";

    /**
     * 项目信息禁用/启用标志 0 启用 1 禁用
     */
    public static final String DISABLE = "1";
    public static final String ENABLE = "0";

    /**
     * 发票开票状态
     */
    public static final String DK = "0";
    public static final String FSKP = "1";
    public static final String YK = "2";
    public static final String KPSB = "3";

    /**
     * 明源税率标识 0 正常税率 1 免税 2 不征税 3 普通零税率
     */
    public static final String ZCSL = "0";
    public static final String MS = "1";
    public static final String BZS = "2";
    public static final String PTLSL = "3";

    /**
     * 明源接口开票类型  1.蓝票 2.红票 3.空白废 4.蓝废 5.红废
     */
    public static final String BLUE_INVOICETYPE = "1";
    public static final String RED_INVOICETYPE = "2";
    public static final String DISCARD_BLANK_INVOICETYPE = "3";
    public static final String DISCARD_BLUE_INVOICETYPE = "4";
    public static final String DISCARD_RED_INVOICETYPE = "5";

    /**
     * 设备管理 -设备类型
     */
    public static final String JSP = "0";
    public static final String SKP = "1";
    public static final String UKEY = "2";
    public static final String DPPT = "3";
    public static final String A9 = "4";
}
